#include "option.h"
#include "ui_option.h"
#include <qdebug.h>
Option::Option(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Option)
{
    autosave=1;
    ui->setupUi(this);
	inx=ui->comboBox->currentIndex();
}

Option::~Option()
{
    delete ui;
}

void Option::on_Autosave_toggled(bool checked)
{
    autosave=checked;
}


void Option::on_Option_accepted()
{

}

void Option::on_buttonBox_accepted()
{
	qDebug()<<"acc";
	if(ui->comboBox->currentIndex()!=inx)
	{
		inx=ui->comboBox->currentIndex();
		emit trans(ui->comboBox->currentText());
	}
}
void Option::retrans()
{
	ui->retranslateUi(this);
}
